package com.brush.brushcommon.common.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brush.brushcommon.common.BasicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author debug
 * @since 2024-07-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_menu")
@Schema(name = "Menu对象", description = "菜单表")
public class Menu extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "所属上级菜单")
    private Long parentId;

    @Schema(description = "菜单名字")
    private String name;

    @Schema(description = "菜单类型（0：目录，1：菜单，2：按钮）")
    private Byte type;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "权限标识")
    private String perms;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "菜单排序")
    private Integer sortValue;

    @Schema(description = "状态（0：禁止，1:正常）")
    private Byte status;

}
